package com.example.demo.controller;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.cache.annotation.Cacheable;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.ResponseBody;

@Controller
@ResponseBody  //设置当前类返回的数据而不是页面
public class UserController {

    //得到日志对象
    private static final Logger logger = LoggerFactory.getLogger(UserController.class);


    public String sayHi() {

        return "hi,springboot";
    }
}
